From 2c3aa6f05366f35fc9e518985b859cd8abb29077 Mon Sep 17 00:00:00 2001 From: Debian Qt/KDE Maintainers Date: Mon, 29 Oct 2018 19:59:29 +0000 Subject: [PATCH] gnukfreebsd_linker_warnings Gbp-Pq: Name gnukfreebsd_linker_warnings.diff --- config.tests/unix/futimens/futimens.pro | 1 + config.tests/unix/getentropy/getentropy.pro | 1 + src/corelib/configure.json | 1 + 3 files changed, 3 insertions(+) diff --git a/config.tests/unix/futimens/futimens.pro b/config.tests/unix/futimens/futimens.pro index 83a122252..ef10eed91 100644 --- a/config.tests/unix/futimens/futimens.pro +++ b/config.tests/unix/futimens/futimens.pro @@ -4,3 +4,4 @@ SOURCES += futimens.cpp # targets. This simplifies the logic at the call site dramatically, as it isn't # strictly needed compared to futimes(). darwin: QMAKE_CXXFLAGS += -Werror=unguarded-availability +QMAKE_LFLAGS += -Wl,--fatal-warnings diff --git a/config.tests/unix/getentropy/getentropy.pro b/config.tests/unix/getentropy/getentropy.pro index bdd626b51..58a929338 100644 --- a/config.tests/unix/getentropy/getentropy.pro +++ b/config.tests/unix/getentropy/getentropy.pro @@ -1 +1,2 @@ SOURCES = getentropy.cpp +QMAKE_LFLAGS += -Wl,--fatal-warnings diff --git a/src/corelib/configure.json b/src/corelib/configure.json index dfb575da0..88bccc400 100644 --- a/src/corelib/configure.json +++ b/src/corelib/configure.json @@ -254,6 +254,7 @@ "label": "O_CLOEXEC", "type": "compile", "test": { + "qmake": "QMAKE_LFLAGS += -Wl,--fatal-warnings", "head": "#define _GNU_SOURCE 1", "include": [ "sys/types.h", "sys/socket.h", "fcntl.h", "unistd.h" ], "main": [ -- 2.30.2